package ModelLayer;


/**
 * Write a description of class Customer here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Customer extends Person
{
    private String regDate;
    private int nrPurchases;
    
    public Customer(int id, String firstName, String lastName, String bankAccount, String email, String phone, String address, String city, String regDate, int nrPurchases)
    {
        super(id, firstName, lastName, bankAccount, email, phone, address, city);
        this.regDate = regDate;
        this.nrPurchases = nrPurchases;
    }
    
    public void setRegDate(String newdate)
    {
        regDate = newdate;
    }
    
    public void setNrPurchases(int newnr)
    {
        nrPurchases = newnr;
    }
    
    public int getNrPurchases()
    {
        return nrPurchases;
    }
    
    public String getRegDate()
    {
        return regDate;
    }
}